/*!
 * Copyright 2019 WeBank
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
 @import '@dataspherestudio/shared/common/style/variables.scss';

.field-table {
    .field-table-header,
    .field-table-body {
        display: flex;
        border: 1px solid #dcdee2;
        min-height: 46px;
        justify-content: center;
        align-items: center;
        @include border-color(#dcdee2, $dark-border-color-base);
    }
    .field-table-header {
        justify-content: space-evenly;
        background-color: #5e9de0;
        color: #fff;
        font-weight: bold;
        margin-top: 10px;
        border: none;
        .field-table-header-wrap {
            width: calc(100% - 18px);
            display: flex;
        }
    }
    .field-table-body {
        border-top: none;
        justify-content: space-evenly;
        padding-top: 8px;
        height: 70px;
        &:hover {
            @include bg-color(#ebf7ff, $dark-active-menu-item);
        }
        &.actived {
            @include bg-color(#ebf7ff, $dark-active-menu-item);
        }
    }
    .field-table-item {
        padding: 0 10px;
        display: inline-block;
        height: 100%;
        text-align: center;
        font-size: 12px;
        margin: 0;
        &.nowrap {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .field-table-item-tag {
            display: inline-block;
            width: 100%;
            height: 32px;
            line-height: 1.5;
            padding: 4px 7px;
            font-size: 12px;
            border: 1px solid #dcdee2;
            border-radius: 4px;
            color: #515a6e;
            background-color: #fff;
            background-image: none;
            position: relative;
            cursor: pointer;
            &:hover {
                border-color: #57a3f3;
            }
            .field-table-item-tag-item {
                height: 24px;
                line-height: 22px;
                max-width: 99%;
                display: inline-block;
                padding: 0 8px;
                border: 1px solid #e8eaec;
                border-radius: 3px;
                background: #f7f7f7;
                font-size: 12px;
                vertical-align: middle;
                opacity: 1;
                overflow: hidden;
                cursor: pointer;
            }
            .field-table-item-tag-arrow {
                font-size: 14px;
                color: #808695;
                position: absolute;
                right: 8px;
                top: 8px;
            }
        }
    }
    .field-table-item-action {
        min-width: 60px;
        display: inline-block;
        text-align: center;
        padding-bottom: 20px;
    }
    .field-table-index {
        width: 5%;
        min-width: 50px;
    }
    ::v-deep .ivu-form-item-error-tip {
    padding-top: 2px;
  }
}
